<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>液化气用户家财险</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        /* 自定义样式 */
        .tab-content {
            display: none;
        }
        .tab-content.active {
            display: block;
        }
        .plan-button {
            position: relative;
            transition: all 0.3s ease;
        }
        .plan-button:not(.active):hover {
            @apply border-blue-600 text-blue-600;
        }
        .plan-button.active {
            @apply bg-blue-600 text-white font-medium;
        }
        .modal {
            display: none;
            position: fixed;
            bottom: -100%;
            left: 0;
            right: 0;
            background: white;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            max-height: 90vh;
            z-index: 50;
        }
        .modal.show {
            transform: translateY(0);
            bottom: 0;
        }
        .modal-backdrop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 40;
        }
        .modal-backdrop.show {
            display: block;
            opacity: 1;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- 产品标题区域 -->
    <div class="bg-white">
        <img src="../头图2.png" alt="产品头图" class="w-full">
        <div class="p-4">
            <h1 class="text-2xl font-bold mb-2">液化气用户家财险</h1>
            <div class="flex gap-2">
                <span class="text-xs px-2 py-1 bg-blue-100 text-blue-600 rounded">电子保单</span>
                <span class="text-xs px-2 py-1 bg-blue-100 text-blue-600 rounded">电子发票</span>
                <span class="text-xs px-2 py-1 bg-blue-100 text-blue-600 rounded">在线投保</span>
            </div>
        </div>
    </div>

    <!-- 保障责任区域 -->
    <div class="bg-white mt-2 p-4">
        <h2 class="text-lg font-bold mb-4">保障方案</h2>
        <div class="flex justify-center gap-4 mb-4">
            <button class="plan-button active w-[80px] h-[36px] border border-blue-600 bg-blue-600 text-white font-medium text-[15px]" data-plan="basic">基础款</button>
            <button class="plan-button w-[80px] h-[36px] border border-gray-300 text-gray-600 text-[15px]" data-plan="upgrade">升级款</button>
            <button class="plan-button w-[80px] h-[36px] border border-gray-300 text-gray-600 text-[15px]" data-plan="premium">尊享款</button>
        </div>

        <!-- 保障内容 -->
        <div class="space-y-3 text-sm" id="planContent">
            <!-- 内容将由 JavaScript 动态更新 -->
            <div class="flex justify-between">
                <span class="text-gray-600">投保年龄</span>
                <span>18-64周岁</span>
            </div>
            <div class="flex justify-between">
                <span class="text-gray-600">起保人数</span>
                <span>3人</span>
            </div>
            <!-- 其他保障内容... -->
        </div>

        <button class="w-full mt-4 text-blue-600 text-sm" onclick="showModal('coverageDetail')">
            查看保障详情
        </button>
    </div>

    <!-- 产品描述区域 -->
    <div class="bg-white mt-2 pb-[72px]">
        <div class="flex border-b">
            <button class="tab-button flex-1 py-3 text-center text-blue-600 border-b-2 border-blue-600 text-sm font-medium" data-tab="feature">产品特色</button>
            <button class="tab-button flex-1 py-3 text-center text-gray-600 text-sm font-medium" data-tab="info">投保信息</button>
            <button class="tab-button flex-1 py-3 text-center text-gray-600 text-sm font-medium" data-tab="terms">产品条款</button>
            <button class="tab-button flex-1 py-3 text-center text-gray-600 text-sm font-medium" data-tab="faq">常见问题</button>
        </div>

        <!-- Tab内容区域 -->
        <div>
            <!-- 产品特色 -->
            <div class="tab-content active" id="feature">
                <img src="../产品特色.png" alt="产品特色" class="w-full">
            </div>

            <!-- 投保信息 -->
            <div class="tab-content" id="info">
                <div class="p-4 space-y-6">
                    <!-- 投保须知 -->
                    <div class="space-y-3">
                        <h3 class="font-medium">投保须知</h3>
                        <p class="text-sm text-gray-600 leading-relaxed">
                            1.本产品为人保财险液化气用户家财险，报备文件条款编码为 《液化气用户家财险条款-注册号为：C0000183726636362666266》…； 2. 本保险仅承担被保险人在中国大陆地区发生的房屋液化气意外伤害事故责任。根据条款约定，投保人、被保险人或者保
                        </p>
                        <button onclick="showModal('noticeDetail')" class="text-blue-600 text-sm">查看全部</button>
                    </div>

                    <!-- 投保流程 -->
                    <div class="space-y-3">
                        <h3 class="font-medium">投保流程</h3>
                        <div class="text-sm text-gray-600 space-y-4">
                            <div class="flex items-center gap-2">
                                <span class="text-blue-600">填写资料</span>
                                <span class="text-gray-300">></span>
                                <span class="text-blue-600">支付保费</span>
                                <span class="text-gray-300">></span>
                                <span class="text-blue-600">保单生成</span>
                                <span class="text-gray-300">></span>
                                <span class="text-blue-600">寄送发票</span>
                            </div>
                            
                            <div class="space-y-4">
                                <div>
                                    <p class="font-medium mb-2">1投保</p>
                                    <p class="mb-2">1、所需投保资料</p>
                                    <p class="text-gray-600">营业执照、人员清单、投保声明盖章件</p>
                                    <p class="mb-2">2、选择APP端或PC端投保</p>
                                    <p class="text-gray-600">PC端投保请在电脑端打开登录微信客户端，进入XXX公众号，点击投保；</p>
                                </div>

                                <div>
                                    <p class="font-medium mb-2">2支付保费</p>
                                    <p class="mb-2">1、线上支付</p>
                                    <p class="text-gray-600">支付宝/微信</p>
                                    <p class="text-gray-600">需在保单生效日前完成支付,若订单被关闭请在订单列表中点击"重新投保"提交</p>
                                    <p class="mb-2">2、对公支付</p>
                                    <p class="text-gray-600">收款名:世纪保险经纪有限责任公司</p>
                                </div>

                                <div>
                                    <p class="font-medium mb-2">3、保单/发票</p>
                                    <p class="mb-2">1、保单</p>
                                    <p class="text-gray-600">出单成功后半小时内自动发生至预留邮箱</p>
                                    <p class="mb-2">2、发票</p>
                                    <p class="text-gray-600">出单成功后，团险订单后台点击"申请发票",选择电子普票或者电子专票，发送至预留邮箱</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>



            <!-- 产品条款 -->
            <div class="tab-content" id="terms">
                <div class="p-4">
                    <div class="space-y-3">
                        <div onclick="showModal('termsPdf1')" class="cursor-pointer">
                            <div class="flex items-center justify-between p-3 bg-gray-50 rounded hover:bg-gray-100 transition-colors">
                                <div class="flex items-center space-x-3">
                                    <i class="fas fa-file-pdf text-red-500"></i>
                                    <span class="text-sm">人保财险液化气用户家财险条款</span>
                                </div>
                                <i class="fas fa-chevron-right text-gray-400"></i>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 条款图片弹窗 -->
            <div class="modal rounded-t-2xl" id="termsPdf1">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold">人保财险液化气用户家财险条款</h3>
                        <button onclick="hideModal('termsPdf1')" class="text-gray-500 p-2">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="max-h-[80vh] overflow-y-auto pb-20">
                        <div class="w-full">
                            <img src="../液化气用户家财险条款.png" alt="液化气用户家财险条款" class="w-full h-auto cursor-pointer" onclick="showImageModal('../液化气用户家财险条款.png', '液化气用户家财险条款')">
                        </div>
                        <div class="mt-4 text-center">
                            <a href="../液化气用户家财险条款.pdf" target="_blank" class="text-blue-600 text-sm underline mr-4">查看原版PDF</a>
                            <a href="../液化气用户家财险条款.pdf" download class="text-blue-600 text-sm underline">下载PDF</a>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 常见问题 -->
            <div class="tab-content" id="faq">
                <div class="p-4 space-y-4">
                    <div class="space-y-3">
                        <div onclick="showModal('faq1')" class="flex items-center justify-between p-3 bg-gray-50 rounded hover:bg-gray-100 transition-colors cursor-pointer">
                            <span class="text-sm">什么是液化气用户家财险？</span>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </div>
                        <div onclick="showModal('faq2')" class="flex items-center justify-between p-3 bg-gray-50 rounded hover:bg-gray-100 transition-colors cursor-pointer">
                            <span class="text-sm">液化气意外事故理赔需要哪些材料？</span>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </div>
                        <div onclick="showModal('faq3')" class="flex items-center justify-between p-3 bg-gray-50 rounded hover:bg-gray-100 transition-colors cursor-pointer">
                            <span class="text-sm">投保后多久生效？</span>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </div>
                        <div onclick="showModal('faq4')" class="flex items-center justify-between p-3 bg-gray-50 rounded hover:bg-gray-100 transition-colors cursor-pointer">
                            <span class="text-sm">哪些情况不在保障范围内？</span>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </div>
                        <div onclick="showModal('faq5')" class="flex items-center justify-between p-3 bg-gray-50 rounded hover:bg-gray-100 transition-colors cursor-pointer">
                            <span class="text-sm">如何申请理赔？</span>
                            <i class="fas fa-chevron-right text-gray-400"></i>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 常见问题弹窗 -->
            <div class="modal rounded-t-2xl" id="faq1">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold">什么是液化气用户家财险？</h3>
                        <button onclick="hideModal('faq1')" class="text-gray-500 p-2">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="space-y-4 max-h-[80vh] overflow-y-auto pb-20">
                        <p class="text-sm text-gray-600 leading-relaxed">
                            液化气用户家财险是针对使用液化气的家庭用户提供的家庭财产保险，主要保障因液化气泄漏引起的气体中毒事故以及相关的火灾、爆炸事故造成的损失。
                        </p>
                        <p class="text-sm text-gray-600 leading-relaxed">
                            主要保障内容包括：
                        </p>
                        <ul class="list-disc pl-4 text-sm text-gray-600 space-y-2">
                            <li>室内财产损失</li>
                            <li>人身意外身故残疾及意外医疗（三者）</li>
                            <li>人身意外身故/残疾</li>
                            <li>意外医疗</li>
                        </ul>
                    </div>
                </div>
            </div>

            <!-- FAQ2 弹窗 -->
            <div class="modal rounded-t-2xl" id="faq2">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold">液化气意外事故理赔需要哪些材料？</h3>
                        <button onclick="hideModal('faq2')" class="text-gray-500 p-2">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="space-y-4 max-h-[80vh] overflow-y-auto pb-20">
                        <p class="text-sm text-gray-600 leading-relaxed">
                            液化气意外事故理赔所需材料：
                        </p>
                        <ul class="list-disc pl-4 text-sm text-gray-600 space-y-2">
                            <li>保险单及保险费收据</li>
                            <li>理赔申请书</li>
                            <li>事故证明材料（消防、公安等部门出具）</li>
                            <li>财产损失清单及相关票据</li>
                            <li>医疗费用发票及诊断证明（如涉及人身伤害）</li>
                            <li>其他与确认保险事故性质、原因等有关的证明和资料</li>
                        </ul>
                        <p class="text-sm text-gray-600 leading-relaxed mt-4">
                            理赔咨询热线：4001868878
                        </p>
                    </div>
                </div>
            </div>

            <!-- FAQ3 弹窗 -->
            <div class="modal rounded-t-2xl" id="faq3">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold">投保后多久生效？</h3>
                        <button onclick="hideModal('faq3')" class="text-gray-500 p-2">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="space-y-4 max-h-[80vh] overflow-y-auto pb-20">
                        <p class="text-sm text-gray-600 leading-relaxed">
                            液化气用户家财险的生效时间：
                        </p>
                        <ul class="list-disc pl-4 text-sm text-gray-600 space-y-2">
                            <li>投保成功并缴费后次日零时生效</li>
                            <li>保险期间为1年</li>
                            <li>若在承保期间内需要变更，需提前联系保险公司</li>
                        </ul>
                        <p class="text-sm text-gray-600 leading-relaxed mt-4">
                            注：保险责任在保险合同生效后开始承担，生效前发生的事故不在保障范围内。
                        </p>
                    </div>
                </div>
            </div>

            <!-- FAQ4 弹窗 -->
            <div class="modal rounded-t-2xl" id="faq4">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold">哪些情况不在保障范围内？</h3>
                        <button onclick="hideModal('faq4')" class="text-gray-500 p-2">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="space-y-4 max-h-[80vh] overflow-y-auto pb-20">
                        <p class="text-sm text-gray-600 leading-relaxed">
                            以下情况不在保障范围内：
                        </p>
                        <ul class="list-disc pl-4 text-sm text-gray-600 space-y-2">
                            <li>故意行为、违法犯罪行为</li>
                            <li>战争、军事行动、暴乱等</li>
                            <li>核辐射、核污染等</li>
                            <li>被保险人醉酒或服用毒品、管制药物</li>
                            <li>自然老化、虫蛀、鼠咬等渐进性损害</li>
                            <li>未按安全操作规程使用液化气设备</li>
                        </ul>
                        <p class="text-sm text-gray-600 leading-relaxed mt-4">
                            详细的免责条款请参阅保险条款。
                        </p>
                    </div>
                </div>
            </div>

            <!-- FAQ5 弹窗 -->
            <div class="modal rounded-t-2xl" id="faq5">
                <div class="p-4">
                    <div class="flex justify-between items-center mb-6">
                        <h3 class="text-xl font-bold">如何申请理赔？</h3>
                        <button onclick="hideModal('faq5')" class="text-gray-500 p-2">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="space-y-4 max-h-[80vh] overflow-y-auto pb-20">
                        <p class="text-sm text-gray-600 leading-relaxed">
                            理赔申请步骤：
                        </p>
                        <ol class="list-decimal pl-4 text-sm text-gray-600 space-y-2">
                            <li>事故发生后立即拨打报案电话：4001868878</li>
                            <li>保护现场，等待查勘人员到场</li>
                            <li>准备相关理赔材料</li>
                            <li>提交理赔申请</li>
                            <li>配合保险公司调查</li>
                            <li>审核通过后获得赔付</li>
                        </ol>
                        <p class="text-sm text-gray-600 leading-relaxed mt-4">
                            报案时间：事故发生后请及时报案，最迟不超过48小时。
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 投保须知弹窗 -->
    <div class="modal rounded-t-2xl" id="noticeDetail">
        <div class="p-4">
            <div class="flex justify-between items-center mb-6">
                <h3 class="text-xl font-bold">投保须知</h3>
                <button onclick="hideModal('noticeDetail')" class="text-gray-500 p-2">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
            <div class="space-y-4 max-h-[80vh] overflow-y-auto pb-20">
                <div class="text-sm text-gray-600 leading-relaxed space-y-4">
                    <p>1.本产品为人保财险液化气用户家财险，报备文件条款编码为 《液化气用户家财险条款-注册号为：C0000183726636362666266》…；</p>
                    <p>2. 本保险仅承担被保险人在中国大陆地区发生的房屋液化气意外伤害事故责任。根据条款约定，投保人、被保险人…；</p>
                    <p>3. 被保险人为年龄18-90周岁且与投保人具有保险利益的、身体健康、能正常工作或正常生活的人员；</p>
                    <p>...</p>
                    <p>8. 产品页面仅做产品理解之用，具体内容以正式的保单及条款为准，正式保单与条款有冲突之处以保单约定为准。</p>
                </div>
            </div>
        </div>
    </div>

    <!-- 底部固定栏 -->
    <div class="fixed bottom-0 left-0 right-0 bg-white border-t p-4 flex items-center justify-between">
        <div class="flex items-center gap-4">
            <button class="flex items-center text-gray-600" onclick="showModal('insuranceDocs')">
                <i class="fas fa-file-alt mr-1"></i>
                <span>投保资料</span>
            </button>
            <div class="flex items-center">
                <span class="text-sm text-gray-600 mr-2">保费</span>
                <span class="text-red-600 font-bold text-lg" id="bottomPremium">10</span>
                <span class="text-sm text-gray-600">元</span>
            </div>
        </div>
        <a href="apply.html" class="bg-blue-600 text-white px-8 py-2 rounded-full inline-block no-underline hover:bg-blue-700 transition-colors">
            立即投保
        </a>
    </div>

    <!-- 投保资料弹窗 -->
    <div class="modal rounded-t-2xl" id="insuranceDocs">
        <div class="p-4">
            <div class="flex justify-between items-center mb-6">
                <h3 class="text-xl font-bold">投保资料</h3>
                <button onclick="hideModal('insuranceDocs')" class="text-gray-500 p-2">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
            <div class="grid grid-cols-3 gap-4 max-h-[80vh] overflow-y-auto pb-20">
                <!-- 投保方案 -->
                <a href="/docs/insurance-plan.pdf" target="_blank" class="block">
                    <div class="flex flex-col items-center space-y-2 p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
                        <div class="w-12 h-12 flex items-center justify-center bg-blue-100 rounded-lg">
                            <i class="fas fa-file-alt text-blue-600 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">投保方案</span>
                    </div>
                </a>

                <!-- 投保声明 -->
                <a href="/docs/insurance-declaration.pdf" target="_blank" class="block">
                    <div class="flex flex-col items-center space-y-2 p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
                        <div class="w-12 h-12 flex items-center justify-center bg-blue-100 rounded-lg">
                            <i class="fas fa-file-signature text-blue-600 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">投保声明</span>
                    </div>
                </a>

                <!-- 客户告知书 -->
                <a href="/docs/customer-notice.pdf" target="_blank" class="block">
                    <div class="flex flex-col items-center space-y-2 p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
                        <div class="w-12 h-12 flex items-center justify-center bg-blue-100 rounded-lg">
                            <i class="fas fa-file-contract text-blue-600 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">客户告知书</span>
                    </div>
                </a>

                <!-- 授权委托书 -->
                <a href="/docs/authorization.pdf" target="_blank" class="block">
                    <div class="flex flex-col items-center space-y-2 p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
                        <div class="w-12 h-12 flex items-center justify-center bg-blue-100 rounded-lg">
                            <i class="fas fa-file-invoice text-blue-600 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">授权委托书</span>
                    </div>
                </a>

                <!-- 费率表 -->
                <a href="/docs/rate-table.pdf" target="_blank" class="block">
                    <div class="flex flex-col items-center space-y-2 p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
                        <div class="w-12 h-12 flex items-center justify-center bg-blue-100 rounded-lg">
                            <i class="fas fa-table text-blue-600 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">费率表</span>
                    </div>
                </a>

                <!-- 免责条款 -->
                <a href="/docs/disclaimer.pdf" target="_blank" class="block">
                    <div class="flex flex-col items-center space-y-2 p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition-colors">
                        <div class="w-12 h-12 flex items-center justify-center bg-blue-100 rounded-lg">
                            <i class="fas fa-file-shield text-blue-600 text-xl"></i>
                        </div>
                        <span class="text-sm text-gray-600">免责条款</span>
                    </div>
                </a>
            </div>
        </div>
    </div>

    <!-- 保障详情弹窗 -->
    <div class="modal-backdrop" id="modalBackdrop"></div>
    <div class="modal rounded-t-2xl" id="coverageDetail">
        <div class="p-4">
            <div class="flex justify-between items-center mb-6">
                <h3 class="text-xl font-bold">保障责任详情</h3>
                <button onclick="hideModal('coverageDetail')" class="text-gray-500 p-2">
                    <i class="fas fa-times text-xl"></i>
                </button>
            </div>
            <div class="space-y-6 max-h-[80vh] overflow-y-auto pb-20">
                <!-- 责任1 -->
                <div class="space-y-3">
                    <div class="flex justify-between items-center">
                        <span class="text-lg font-medium">室内财产损失</span>
                        <span class="text-lg font-medium text-red-600">5-20万/人</span>
                    </div>
                    <p class="text-gray-600 leading-relaxed text-sm">
                        保险期间内，由于下列原因造成保险标的的损失，保险人依照本保险合同的约定负责赔偿：<br>
                        （一）由于家庭燃气用具、电器、用电线路、雷电以及其它内部或外来火源引起的火灾;<br>
                        （二）家庭燃气用具、液化气罐以及燃气泄漏引起的爆炸。第七条 保险事故发生后，被保险人为防止或减少保险标的的损失所支付的必要；
                    </p>
                </div>

                <!-- 责任2 -->
                <div class="space-y-3">
                    <div class="flex justify-between items-center">
                        <span class="text-lg font-medium">人身意外身故残疾及意外医疗（三者）</span>
                        <span class="text-lg font-medium text-red-600">2-10万/人</span>
                    </div>
                    <p class="text-gray-600 leading-relaxed text-sm">
                        在保险期间内，被保险人在保险单载明的场所内，因非故意行为引起的气体泄露中毒(见释义)事故，导致第三者的人身伤亡、医疗费用及财产损失，依照中华人民共和国法律(不包括港澳台地区法律)应由被保险人承担的经济赔偿责任，保险人按照本保险合同的约定负责赔偿。<br>
                        （一）由于电动自行车电池、家用电器、用电线路、雷电等原因或其它内部、外来火源引起的火灾;<br>
                        （二）电动自行车电池、液化气罐以及气体泄漏等原因引起的爆炸；
                    </p>
                </div>

                <!-- 责任3 -->
                <div class="space-y-3">
                    <div class="flex justify-between items-center">
                        <span class="text-lg font-medium">人身意外身故/残疾</span>
                        <span class="text-lg font-medium text-red-600">2-10万/人</span>
                    </div>
                    <p class="text-gray-600 leading-relaxed text-sm">
                        在保险期间内，因发生主险合同约定的保险责任范围内的气体泄漏中毒事故,造成被保险人本人及家庭成员的人身伤亡及医疗费用，依照中华人民共和国法律应由被保险人承担的经济赔偿责任，保险人按照本附加险合同的约定负责赔偿；
                    </p>
                </div>

                <!-- 责任4 -->
                <div class="space-y-3">
                    <div class="flex justify-between items-center">
                        <span class="text-lg font-medium">意外医疗</span>
                        <span class="text-lg font-medium text-red-600">0.5-2万/人</span>
                    </div>
                    <p class="text-gray-600 leading-relaxed text-sm">
                        在保险期间内，因发生主险合同约定的保险责任范围内的气体泄漏中毒事故,造成被保险人本人及家庭成员的人身伤亡及医疗费用，依照中华人民共和国法律应由被保险人承担的经济赔偿责任，保险人按照本附加险合同的约定负责赔偿；
                    </p>
                </div>
            </div>
        </div>
    </div>

    <script>
        // 页面加载完成后初始化A款方案内容
        document.addEventListener('DOMContentLoaded', function() {
            updatePlanContent('basic');
        updatePremium('basic');
        });

        // Tab切换
        document.querySelectorAll('.tab-button').forEach(button => {
            button.addEventListener('click', () => {
                document.querySelectorAll('.tab-button').forEach(btn => {
                    btn.classList.remove('text-blue-600', 'border-b-2', 'border-blue-600');
                });
                button.classList.add('text-blue-600', 'border-b-2', 'border-blue-600');
                
                const tabId = button.getAttribute('data-tab');
                document.querySelectorAll('.tab-content').forEach(content => {
                    content.classList.remove('active');
                });
                document.getElementById(tabId).classList.add('active');
            });
        });

        // 保障方案切换
        document.querySelectorAll('.plan-button').forEach(button => {
            button.addEventListener('click', () => {
                document.querySelectorAll('.plan-button').forEach(btn => {
                    btn.classList.remove('active', 'bg-blue-600', 'text-white', 'border-blue-600');
                    btn.classList.add('text-gray-600', 'border-gray-300');
                });
                button.classList.remove('text-gray-600', 'border-gray-300');
                button.classList.add('active', 'bg-blue-600', 'text-white', 'border-blue-600');
                
                const plan = button.getAttribute('data-plan');
                
                // 更新保障内容
                updatePlanContent(plan);
                
                // 更新保费
                updatePremium(plan);
            });
        });

        // 弹窗控制
        function showModal(modalId) {
            document.getElementById(modalId).style.display = 'block';
            document.getElementById('modalBackdrop').classList.add('show');
            setTimeout(() => {
                document.getElementById(modalId).classList.add('show');
            }, 10);
        }

        function hideModal(modalId) {
            document.getElementById(modalId).classList.remove('show');
            document.getElementById('modalBackdrop').classList.remove('show');
            setTimeout(() => {
                document.getElementById(modalId).style.display = 'none';
            }, 300);
        }

        // 更新保费
        function updatePremium(plan) {
            const premiumElement = document.getElementById('bottomPremium');
            switch(plan) {
                case 'basic':
                    premiumElement.textContent = '10';
                    break;
                case 'upgrade':
                    premiumElement.textContent = '20';
                    break;
                case 'premium':
                    premiumElement.textContent = '25';
                    break;
                default:
                    premiumElement.textContent = '10';
            }
        }

        // 更新保障内容
        function updatePlanContent(plan) {
            const content = document.getElementById('planContent');
            // 根据不同方案更新内容
            if (plan === 'basic') {
                content.innerHTML = `
                    <div class="space-y-3">
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">保障期间</span>
                            <span class="font-medium">1年</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">投保年龄</span>
                            <span class="font-medium">18周岁(含)-90周岁(含)</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">室内财产损失</span>
                            <span class="font-medium text-red-600">5万/户</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">人身意外身故残疾及意外医疗（三者）</span>
                            <span class="font-medium text-red-600">2万/人</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">人身意外身故/残疾</span>
                            <span class="font-medium text-red-600">2万/人</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">意外医疗</span>
                            <span class="font-medium text-red-600">5000元/人</span>
                        </div>
                    </div>
                `;
            } else if (plan === 'upgrade') {
                content.innerHTML = `
                    <div class="space-y-3">
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">保障期间</span>
                            <span class="font-medium">1年</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">投保年龄</span>
                            <span class="font-medium">18周岁(含)-90周岁(含)</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">室内财产损失</span>
                            <span class="font-medium text-red-600">10万/户</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">人身意外身故残疾及意外医疗（三者）</span>
                            <span class="font-medium text-red-600">5万/人</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">人身意外身故/残疾</span>
                            <span class="font-medium text-red-600">5万/人</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">意外医疗</span>
                            <span class="font-medium text-red-600">1万/人</span>
                        </div>
                    </div>
                `;
            } else if (plan === 'premium') {
                content.innerHTML = `
                    <div class="space-y-3">
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">保障期间</span>
                            <span class="font-medium">1年</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">投保年龄</span>
                            <span class="font-medium">18周岁(含)-90周岁(含)</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">室内财产损失</span>
                            <span class="font-medium text-red-600">20万/户</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">人身意外身故残疾及意外医疗（三者）</span>
                            <span class="font-medium text-red-600">10万/人</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">人身意外身故/残疾</span>
                            <span class="font-medium text-red-600">10万/人</span>
                        </div>
                        <div class="flex justify-between items-center py-2 border-b border-gray-100">
                            <span class="text-gray-600">意外医疗</span>
                            <span class="font-medium text-red-600">2万/人</span>
                        </div>
                    </div>
                `;
            }
        }

        // 图片放大查看功能
        function showImageModal(imageSrc, title) {
            // 创建图片放大弹窗
            const existingModal = document.getElementById('imageViewModal');
            if (existingModal) {
                existingModal.remove();
            }

            const imageModal = document.createElement('div');
            imageModal.id = 'imageViewModal';
            imageModal.className = 'fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50';
            imageModal.innerHTML = `
                <div class="relative max-w-[95vw] max-h-[95vh] bg-white rounded-lg overflow-hidden">
                    <div class="p-4 border-b border-gray-200 flex justify-between items-center">
                        <h3 class="text-lg font-semibold">${title}</h3>
                        <button onclick="closeImageModal()" class="text-gray-500 hover:text-gray-700">
                            <i class="fas fa-times text-xl"></i>
                        </button>
                    </div>
                    <div class="p-4 overflow-auto max-h-[85vh]">
                        <img src="${imageSrc}" alt="${title}" class="w-full h-auto">
                    </div>
                </div>
            `;
            
            document.body.appendChild(imageModal);
            
            // 点击背景关闭
            imageModal.addEventListener('click', function(e) {
                if (e.target === imageModal) {
                    closeImageModal();
                }
            });
        }

        function closeImageModal() {
            const imageModal = document.getElementById('imageViewModal');
            if (imageModal) {
                imageModal.remove();
            }
        }
    </script>
</body>
</html>